package com.example.vue_shop.components.swagger;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author lipengwei
 */
@Api(value = "SwaggerController", tags = "路由到Api页面。")
@Controller
@Slf4j
public class SwaggerController {

    @GetMapping("/")
    public String index() {
        log.info("已经路由到API页面：doc.html");
        return "redirect:doc.html";
    }

}
